import httpInstant from '../utils/http';

/**
 * @description 获得该帖子下该层的追评列表
 * @param currentPage 当前页数
 * @param pageSize 每页显示数量
 * @param commentId 评论id
 * @returns
 */
export function getAdditionalCommentListApi({
  currentPage = 1,
  pageSize = 5,
  commentId
}) {


  return httpInstant.get('/additionalComment/getAdditionalCommentList', {
    params: {
      currentPage,
      pageSize,
      commentId
    }
  });
}


/**
 * @description 添加追评
 * @param content 内容
 * @param postId 帖子ID
 * @param floor 层数
 * @param userId 用户ID
 * @param beCommentId 被回复者ID
 * @returns
 */
export function addAdditionalCommentApi({
  content,
  commentId,
  userId,
  beCommentUserId,
}) {

  return httpInstant.post('/additionalComment/addAdditionalComment', {
    content,
    commentId,
    userId,
    beCommentUserId,
  });
}




export function deleteAdditionalCommentApi({
  additionalCommentId
}) {

  return httpInstant.delete('/additionalComment/deleteAdditionalComment', {
    params: {
      additionalCommentId
    }

  })
}